﻿using System;
using System.ServiceModel;

namespace MockingBird.Simulator.Interceptors.Wcf.Contracts.Clients
{
    public class ITwoWayAsyncClient : ClientBase<ITwoWayAsync>, ITwoWayAsync
    {
        public ITwoWayAsyncClient(string endpointName)
            : base(endpointName)
        {
        }

        #region ITwoWayAsync Members

        public IAsyncResult BeginProcessMessage(System.ServiceModel.Channels.Message message, AsyncCallback callback, object state)
        {
            return this.Channel.BeginProcessMessage(message, callback, state);
        }

        public System.ServiceModel.Channels.Message EndProcessMessage(IAsyncResult result)
        {
            return this.Channel.EndProcessMessage(result);
        }

        #endregion
    }
}
